package com.oauth.global.client.ui.birthday;

import java.util.Iterator;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.oauth.components.client.ui.HorizontalFlowPanel;

public class WindowPanel extends Composite implements HasWidgets {

	private static WindowPanelUiBinder uiBinder = GWT.create(WindowPanelUiBinder.class);

	interface WindowPanelUiBinder extends UiBinder<Widget, WindowPanel> {
	}

	@UiField
	HorizontalFlowPanel headerPanel;

	@UiField
	HorizontalFlowPanel contentPanel;

	private boolean isFirst = true;

	public WindowPanel() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public void add(Widget widget) {
		contentPanel.add(widget);

	}

	@Override
	public void clear() {
		contentPanel.clear();
	}

	@Override
	public Iterator<Widget> iterator() {
		return contentPanel.iterator();
	}

	@Override
	public boolean remove(Widget pW) {
		return contentPanel.remove(pW);
	}
}
